package com.jfree.zuul.config;

import com.jfree.zuul.filter.ErrorTokenFilter;
import com.jfree.zuul.filter.PostTokenFilter;
import com.jfree.zuul.filter.PreTokenFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FilterConfig {

    @Bean
    public PreTokenFilter preTokenFilter() {
        PreTokenFilter preTokenFilter = new PreTokenFilter();
        return preTokenFilter;
    }

    @Bean
    public PostTokenFilter postTokenFilter() {
        return new PostTokenFilter();
    }

    @Bean
    public ErrorTokenFilter errorTokenFilter() {
        return new ErrorTokenFilter();
    }
}
